<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表格排序</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        table {
            width: 500px;
            margin: 0 auto;
            border-collapse: collapse;
        }

        tr:hover {
            background-color: #f5f7fa;
        }

        th {
            cursor: pointer;
            color: #909399;
        }

        td {
            color: #606266;
        }

        th,
        td {
            border: 1px solid #ccc;
            text-align: center;
            height: 40px;
        }

        input {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }
    </style>
</head>

<body>
    <div class="container">
        <table>
            <thead>
                <tr>
                    <th>
                        <input type="checkbox" class="checkAll">
                    </th>
                    <th>编号</th>
                    <th>姓名</th>
                    <th>年龄</th>
                    <th>职位</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <input type="checkbox" class="check">
                    </td>
                    <td>3</td>
                    <td>王同学</td>
                    <td>24</td>
                    <td>C++程序员</td>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox" class="check">
                    </td>
                    <td>5</td>
                    <td>张同学</td>
                    <td>24</td>
                    <td>WEB前端</td>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox" class="check">
                    </td>
                    <td>22</td>
                    <td>玛丽</td>
                    <td>30</td>
                    <td>测试员</td>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox" class="check">
                    </td>
                    <td>6</td>
                    <td>艾伦</td>
                    <td>21</td>
                    <td>交互设计师</td>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox" class="check">
                    </td>
                    <td>17</td>
                    <td>小明同学</td>
                    <td>28</td>
                    <td>PHP工程师</td>
                </tr>
            </tbody>
        </table>
    </div>
    <script src="./index.js"></script>
    <script>

    </script>
</body>

</html>